package com.euond.accv.mdm.client.api;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.euond.accv.mdm.client.constant.Providers;
import com.euond.accv.mdm.client.dto.MdmStoreDTO;
import com.euond.accv.mdm.client.dto.MdmStoreGroupDTO;

/**
 * Created by liqi on 2017/3/16.
 */
@FeignClient(name = Providers.MDM_API)
public interface MdmStoreGroupApi {

	/**
	 * 
	* @Title: findStoreGrop 
	* @Description: TODO(加载树的数据) 
	* @param @return    设定文件 
	* @return List<MdmStoreGroupDTO>    返回类型 
	* @throws
	 */
	@RequestMapping(value = "/accv-mdm-web/feign_api/mdm_store_group/findGrop.json", method = RequestMethod.GET)
	public List<MdmStoreGroupDTO> findGrop(@RequestParam(value = "storeGroupNo", required = true) String storeGroupNo);
	
	/**
	 * 
	* @Title: findGrop 
	* @Description: TODO(获取当前节点下面的的数据) 
	* @param @param storeGroupNo
	* @param @return    设定文件 
	* @return List<MdmStoreGroupDTO>    返回类型 
	* @throws
	 */
	@RequestMapping(value = "/accv-mdm-web/feign_api/mdm_store_group/findTreeById.json", method = RequestMethod.GET)
	public List<MdmStoreGroupDTO> findStoreGropById(@RequestParam("storeGroupNo") String storeGroupNo);
	
	/**
	 * 
	* @Title: findStoreGropIsLeafByPNo 
	* @Description: TODO(获取门店信息显示到地图上) 
	* @param @param pStoreGroupNo
	* @param @return    设定文件 
	* @return List<MdmStoreDTO>    返回类型 
	* @throws
	 */
    @RequestMapping(value = "/accv-mdm-web/feign_api/mdm_store_group/findStoreGropIsLeafByPNo.json", method = RequestMethod.GET)
    public List<MdmStoreDTO> findStoreGropIsLeafByPNo(@RequestParam("pStoreGroupNo") String pStoreGroupNo);
    
	/**
	 * 
	* @Title: findStoreGropIsLeafByPNo 
	* @Description: TODO(获取门店信息显示在线设备) 
	* @param @param pStoreGroupNo
	* @param @return    设定文件 
	* @return List<MdmStoreDTO>    返回类型 
	* @throws
	 */
    @RequestMapping(value = "/accv-mdm-web/feign_api/mdm_store_group/findStoreGropIsLeafListByPNo.json", method = RequestMethod.GET)
    public List<MdmStoreDTO> findStoreGropIsLeafListByPNo(@RequestParam("pStoreGroupNo") String pStoreGroupNo);
    
}
